package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckItem;

import java.util.List;

public interface CheckItemDao {

    //新增检查项
    public void add(CheckItem checkItem);

    //检查项分页条件查询
    public Page<CheckItem> selectByCondition(String quertString);

    //根据检查项id查询检查组中是否存在检查项
    public long findCountByCheckItemId(Integer id);

    //根据id删除检查项
    public void deleteById(Integer id);

    //编辑检查项
    public void edit(CheckItem checkItem);

    //根据id查询检查项
    public CheckItem findById(Integer id);

    //查询所有检查项
    public List<CheckItem> findAll();
}
